<%@ page import="com.itheima.bean.Student" %><%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2020/9/14
  Time: 9:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>el</title>
</head>
<body>
    <%request.setAttribute("username","zhangsan");%>
    <%pageContext.setAttribute("num",10);%>

    <%Student stu = new Student("zhangsan","23","100");
    pageContext.setAttribute("student",stu);
    %>

    字符串：${username}<br>
    整数：${num}<br>

    对象：${student}<br>
    姓名：${student.username}<br>
    年龄：${student.age}<br>
    分数：${student.score}<br>
</body>
</html>
